package com.lmt.org.service;

import com.lmt.basic.utils.PageList;
import com.lmt.org.domain.Employee;
import com.lmt.org.query.EmployeeQuery;

import java.util.List;

/**
 * @Author: Amazing
 * @Date: 2022/6/21 13:33
 * @Version: 1.0
 */
public interface IEmployeeService {
    /**
     * 查询所有
     * @return
     */
    List<Employee> loadAll();

    /**
     * 通过id查询
     * @param id
     * @return
     */
    Employee loadById(Long id);

    /**
     * 通过id删除
     * @param id
     */
    void remove(Long id);

    /**
     * 添加
     * @param employee
     */
    void save(Employee employee);

    /**
     * 修改
     * @param employee
     */
    void update(Employee employee);

    /**
     * 分页+高级查询
     * @param employeeQuery
     * @return
     */
    PageList<Employee> queryData(EmployeeQuery employeeQuery);

    /**
     * 查询总数
     * @param employeeQuery
     * @return
     */
    Integer queryCount(EmployeeQuery employeeQuery);

    /**
    * @Title: batch
    * @Description: 批量删除
    * @Author: Amazing
    * @Version: 1.0
    * @Date:  2022/6/25 10:11
    * @Parameters: [ids]
    * @Return void
    */
    void batch(Long[] ids);
}
